package tech.dx.springdb.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;

/**
 * @ClassName CourseCategories
 * @Description 课程类别  表示都有什么课
 * @Author daoxuan
 * @Date 2019/3/28 11:37
 * @Version 1.0
 */
@Entity
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CourseCategories {
    @Id
    @GeneratedValue
    private long id;

    @Column(nullable = false)
    private String name;

    /**
     * 0 删除 1 有效
     * 状态
     */
    @Column(length = 1,nullable = false)
    private String status;
    /**
     * 创建此记录的用户
     */
    private String creator;

    /**
     * 创建时间
     */
    private String createdDate;

    /**
     * 修改此记录的用户
     */
    private String modified;

    /**
     * 修改用户的时间
     */
    private String modifieddate;
}
